const { environment } = require('./src/config/environment.js')
// const env = process.env.NODE_ENV
module.exports = {
  transpileDependencies: ['uview-ui'],
  publicPath: process.env.NODE_ENV === 'production'?'/mobile':'/',
  devServer: {
    port: 9001,
    proxy: {
      '/': {
        target: environment.baseURL,
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/': ''
        }
      }
    },
  }
}
